#include <string.h>
#include <jni.h>
jmethodID Java_com_adakoda_android_animation_PropertyValuesHolder_nGetIntMethod(
    JNIEnv* env, jobject this, jclass targetClass, jstring methodName
)
{
    const char *nativeString = (*env)->GetStringUTFChars(env, methodName, 0);
    jmethodID mid = (*env)->GetMethodID(env, targetClass, nativeString, "(I)V");
    (*env)->ReleaseStringUTFChars(env, methodName, nativeString);
    return mid;
}

jmethodID Java_com_adakoda_android_animation_PropertyValuesHolder_nGetFloatMethod(
    JNIEnv* env, jobject this, jclass targetClass, jstring methodName)
{
    const char *nativeString = (*env)->GetStringUTFChars(env, methodName, 0);
    jmethodID mid = (*env)->GetMethodID(env, targetClass, nativeString, "(F)V");
    (*env)->ReleaseStringUTFChars(env, methodName, nativeString);
    return mid;
}

void Java_com_adakoda_android_animation_PropertyValuesHolder_nCallIntMethod(
    JNIEnv* env, jobject this, jobject target, jmethodID methodID, int arg)
{
    (*env)->CallVoidMethod(env, target, methodID, arg);
}

void Java_com_adakoda_android_animation_PropertyValuesHolder_nCallFloatMethod(
    JNIEnv* env, jobject this, jobject target, jmethodID methodID, float arg)
{
(*env)->CallVoidMethod(env, target, methodID, arg);
}
